<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>城院服务系统</title>
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css" >
    <link rel="stylesheet" href="/static/css/file.css" >

</head>
<body>
    <div class="nav_head">
        {%if request.session.username|default:'' != ''%}
            <P>欢迎您，{{ request.session.username }}</P>
            <button class="btn btn-default"><a href="/user/logout" >退出</a></button>
        {%else%}
        <a class="btn btn-link"  href="/user/login" >登陆</a>
        <a class="btn btn-link"  href="/user/register" >注册</a>
        {%endif%}
        <div class="nav dropdown">
            <a class="btn btn-link"  href="/user/user_center" >| 用户中心</a>
        </div>
        <div class="nav">
            <a class="btn btn-link"  href="/$" >首页</a>
        </div>
    </div>
    <div class="title">
        <img src="/static/img/title.png">
        <div class="second_title">
            <div class="find">
                <input type="text" class="form-control" id="search" >
                <a type="button" class="btn btn-warning" id="search-button" href="javascript:void(0);" onclick="go_search()">
                    <span class="glyphicon glyphicon-search"></span>
                </a>
                <button type="button" class="btn btn-warning"><a href="/release_goods">发布闲置</a></button>
            </div>
        </div>      
    </div>
    <!-- 返回最上开始 -->
    <div class="back_to_top">
        <a href="#"><img src="/static/img/index-回到最上.png"></a>
    </div>
    <!-- 返回最上结束 -->
    <div class="new_nav">
        <div class="new_nav_in">
            <img src="/static/img/书籍.png"/>
            <a class="btn btn-link" href="#f1">闲置书籍</a>
        </div>
        <div class="new_nav_in">
            <img src="/static/img/双色数码.png"/>
            <a class="btn btn-link" href="#f2">数码电子</a>
        </div>
        <div class="new_nav_in">
            <img src="/static/img/衣服.png"/>
            <a class="btn btn-link" href="#f3">鞋服佩饰</a>
        </div>
        <div class="new_nav_in">
            <img src="/static/img/日用.png"/>
            <a class="btn btn-link" href="#f4">日用物品</a>
        </div>
        <div class="new_nav_in">
            <img src="/static/img/自行车.png"/>
            <a class="btn btn-link" href="#f5">出行交通</a>
        </div>
        <div class="new_nav_in">
            <img src="/static/img/其他.png"/>
            <a class="btn btn-link" href="#f6">其他闲置</a>
        </div>
    </div>
    <div class="main_content">
        <div class="second_content_left nav-1" id="f1">
            <img src="/static/img/书籍.png">
            <a href="/books_list/">闲置书籍</a>
            <a class="btn btn-link more_goods"  href="/books_list/" >更多</a>
            <div class="third_content">

                {% for book in books_list %}
                <div class="goods">
                    <img src="/static/{{ book.picture }}" >
                </div>
                <div class="describe">
                    <img src="/static/img/商品1/箭头.png" >
                    <a href="/goods_details/?title={{ book.title }}">{{ book.title }}</a>
                    <img src="/static/img/商品1/金钱2.png" class="rmb">
                    <span>{{ book.price }}</span>
                    <p>
                        {{ book.description }}
                    </p>
                </div>
                {% endfor %}

            </div>
        </div>
        <div class="second_content_right nav-1" id="f2">
            <a class="btn btn-link more_goods"  href="/digital_list" >更多</a>
            <img src="/static/img/双色数码.png">
            <a href="/digital_list">数码电子</a>

            <div class="third_content">

                {% for digital in digital_list %}
                <div class="goods">
                    <img src="/static/{{ digital.picture }}" >
                </div>
                <div class="describe">
                    <img src="/static/img/商品1/箭头.png" >
                    <a href="/goods_details/?title={{ digital.title }}">{{ digital.title }}</a>
                    <img src="/static/img/商品1/金钱2.png" class="rmb">
                    <span>{{ digital.price }}</span>
                    <p>
                        {{ digital.description }}
                    </p>
                </div>
                {% endfor %}

            </div>

        </div>       
        <div class="second_content_left nav-1" id="f3">
            <img src="/static/img/衣服.png">
            <a href="/cloth_list">鞋服佩饰</a>
            <a class="btn btn-link more_goods"  href="/cloth_list" >更多</a>
            <div class="third_content">

                {% for cloth in cloth_list %}
                <div class="goods">
                    <img src="/static/{{ cloth.picture }}" >
                </div>
                <div class="describe">
                    <img src="/static/img/商品1/箭头.png" >
                    <a href="/goods_details/?title={{ cloth.title }}">{{ cloth.title }}</a>
                    <img src="/static/img/商品1/金钱2.png" class="rmb">
                    <span>{{ cloth.price }}</span>
                    <p>
                        {{ cloth.description }}
                    </p>
                </div>
                {% endfor %}

            </div>
        </div>
        <div class="second_content_right nav-1" id="f4">
            <a class="btn btn-link more_goods"  href="/daily_list" >更多</a>
            <img src="/static/img/日用.png">
            <a href="/daily_list">日用物品</a>
            <div class="third_content">

                {% for daily in daily_list %}
                <div class="goods">
                    <img src="/static/{{ daily.picture }}" >
                </div>
                <div class="describe">
                    <img src="/static/img/商品1/箭头.png" >
                    <a href="/goods_details/?title={{ daily.title }}">{{ daily.title }}</a>
                    <img src="/static/img/商品1/金钱2.png" class="rmb">
                    <span>{{ daily.price }}</span>
                    <p>
                        {{ daily.description }}
                    </p>
                </div>
                {% endfor %}

            </div>
        </div>
        <div class="second_content_left nav-1" id="f5">
            <img src="/static/img/自行车.png">
            <a href="/traffic_list">出行交通</a>
            <a class="btn btn-link more_goods"  href="/traffic_list" >更多</a>
            <div class="third_content">

                {% for traffic in traffic_list %}
                <div class="goods">
                    <img src="/static/{{ traffic.picture }}" >
                </div>
                <div class="describe">
                    <img src="/static/img/商品1/箭头.png" >
                    <a  href="/goods_details/?title={{ traffic.title }}">{{ traffic.title }}</a>
                    <img src="/static/img/商品1/金钱2.png" class="rmb">
                    <span>{{ traffic.price }}</span>
                    <p>
                        {{ traffic.description }}
                    </p>
                </div>
                {% endfor %}

            </div>
        </div>
        <div class="second_content_right nav-1" id="f6" style="overflow: hidden;">
            <a class="btn btn-link more_goods"  href="/other_list" >更多</a>
            <img src="/static/img/其他.png">
            <a href="/other_list">其他闲置</a>
            <div class="third_content">

                {% for other in other_list %}
                <div class="goods">
                    <img src="/static/{{ other.picture }}" >
                </div>
                <div class="describe">
                    <img src="/static/img/商品1/箭头.png" >
                    <a   href="/goods_details/?title={{ other.title }}">{{ other.title }}</a>
                    <img src="/static/img/商品1/金钱2.png" class="rmb">
                    <span>{{ other.price }}</span>
                <p>
                    {{ other.description }}
                </p>
                </div>
                {% endfor %}

            </div>
        </div>               
    </div>
    <!-- foot -->
    <div class="foot">
        <img src="/static/img/title2.png">
        <p>来城院服务系统，你的闲置能换钱！</p>
        <span>全国最大最优质的校园服务平台</span>
    </div>
    <address>
        Written by <a href="#">Resulte</a>.<br>
            Visit us at:<br>
            jxsf University<br>
            tel：18625240520<br>
            Boss:Blank_Zhou
    </address>

    <script src="/static/js/jquery-3.3.1.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/file.js"></script>
</body>
</html>